import request from '@/utils/request'

// 查询OSS存储列表
export function listOss_task(query) {
  return request({
    url: '/system/oss_task/list',
    method: 'get',
    params: query
  })
}

// 查询OSS存储详细
export function getOss_task(id) {
  return request({
    url: '/system/oss_task/' + id,
    method: 'get'
  })
}

// 新增OSS存储
export function addOss_task(data) {
  return request({
    url: '/system/oss_task',
    method: 'post',
    data: data
  })
}

// 修改OSS存储
export function updateOss_task(data) {
  return request({
    url: '/system/oss_task',
    method: 'put',
    data: data
  })
}

// 删除OSS存储
export function delOss_task(id) {
  return request({
    url: '/system/oss_task/' + id,
    method: 'delete'
  })
}
